package com.example.leetcode.string;

import com.example.leetcode.string.common.StringUtils;

class Solution1255 {
    public int maxScoreWords(String[] words, char[] letters, int[] score) {
        return StringUtils.maxScoreWords(words, letters, score);

    }
}

public class leetcode1255 {
    public static void main(String[] args) {
        Solution1255 solution1255 = new Solution1255();
        String[] words = {"dog", "cat", "dad", "good"};
        char[] letters = {'a', 'a', 'c', 'd', 'd', 'd', 'g', 'o', 'o'};
        int[] score = {1, 0, 9, 5, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
        System.out.println(solution1255.maxScoreWords(words, letters, score));
    }
}
